public class arrayExam
{
public static void main(String[] args)
    {
        // Here array is the array name of int type
        int[] array = new int[4];
        System.out.println("The size of the array is " + array.length);
 
        // Here str is a string object
        String str = "GeeksforGeeks";
        System.out.println("The size of the String is " + str.length());
    }
}